
package com.bogo.webhook.feign;

import com.bogo.webhook.feign.request.WenxinRequest;
import com.bogo.webhook.feign.response.WenxinResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "wenxin-service",url = "https://agentapi.baidu.com")
public interface BaiduWenxinService {

	@PostMapping(path = "/assistant/getAnswer")
	WenxinResponse get(@RequestParam("appId")String appId, @RequestParam("secretKey")String secretKey, @RequestBody WenxinRequest request);
}
